package com.ky.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * --- 天道酬勤 ---
 *
 * @version 代码敲烂，月薪过万
 * @Author liguohui
 * @Date 2024/6/15 17:29
 * @desc
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String username;

    private String phone;

    private String password;

    private String imageUrl;

    private String description;

    private Integer followersCount;

    private Integer followingCount;

    private Integer money;

    private Date ctime;

    private String account;

    private int clockin;
    private int sex;
    private String addr;
    private String school;
    private String major;
    private String universities;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date keyTime;
    private String autograph;

}
